package main

import "fmt"

type myInt int

type Book struct {
	title string
	auth  string
}

func changeBook(book Book) {
	book.auth = "666"
}

func changeBook1(book *Book) {
	book.auth = "777"
}

func main() {
	var a myInt = 10
	fmt.Println(a)
	fmt.Printf("Type = %T\n", a)

	var book1 Book
	book1.title = "Golang"
	book1.auth = "zhangsan"
	fmt.Println(book1)

	changeBook(book1)
	fmt.Println(book1)

	changeBook1(&book1)
	fmt.Println(book1)
}
